Touch screen track recognition method and apparatus

ABSTRACT

A method and apparatus for identifying a trajectory on a touch screen solves many limitations that the stylus and the gesture operation currently subjected to in the operation state of the touch screen. For example, due to the chaotic operation caused by the stylus and the gesture operation, it is difficult to distinguish the actual operation attributes such that the operation is too cumbersome and not straightforward, resulting in the technical problem of low user experience. The method for identifying a trajectory on a touch screen includes: detecting a touch operation instruction triggered on the touch screen ( 101 ); and then determining a type of the touch operation instruction ( 102 ); if the type of the touch operation instruction is a stylus-triggered instruction, performing a corresponding processing according to the acquired trajectory of stylus ( 103 ), and if the type of the touch operation instruction is a gesture-triggered instruction, performing a corresponding processing according to the acquired trajectory of gesture ( 104 ).

The present application claims the priority to a Chinese PatentApplication No. 201610281833.9, filed with the China NationalIntellectual Property Administration, on Apr. 28, 2016 and entitled“TOUCH SCREEN TRACK RECOGNITION METHOD AND APPARATUS”, which isincorporated herein by reference in its entirety.

TECHNICAL FIELD

The present application relates to the field of touch screen operationtechnology, and in particular, to a method and apparatus for identifyinga trajectory on a touch screen.

BACKGROUND

In recent years, mobile devices have become more and more popular, andthe demand for writing/drawing on mobile devices is increasing. Since astylus can well meet the needs of writing and drawing on mobile devices,the stylus has been widely used.

Generally, the operation result of the stylus is consistent with theoperation result of the gesture operation, but the stylus and thegesture operation are subject to many limitations in the operation stateof the touch screen. For example, due to the chaotic operation caused bythe stylus and the gesture operation, it is difficult to distinguish theactual operation attributes such that the operation is too cumbersomeand not straightforward, resulting in the technical problem of low userexperience.

SUMMARY

A method and apparatus for identifying a trajectory on a touch screenprovided by embodiments of the present application solves manylimitations in the operations by a stylus and a gesture currentlyexisting in the operation state of the touch screen can be solved, suchas the technical problem of low user experience caused byindistinguishable, complex and indirect operations on the touch screendue to mix-up operations of the stylus and the gesture.

A method for identifying a trajectory on a touch screen provided by anembodiment of the present application includes:

detecting a touch operation instruction triggered on the touch screen;

determining a type of the touch operation instruction; if the touchoperation instruction is a stylus-triggered instruction, performing acorresponding processing according to an acquired trajectory of thestylus, and if the touch operation instruction is a gesture-triggeredinstruction, performing a corresponding processing according to anacquired trajectory of the gesture.

Optionally, detecting a touch operation instruction triggered on thetouch screen specifically includes:

in an ink state, acquiring a trigger mode returned by the touch screen;

automatically matching the trigger mode with an input source anddetermining a corresponding touch operation instruction.

Optionally, automatically matching the trigger mode with an input sourceand determining a corresponding touch operation instruction specificallyincludes:

automatically matching the trigger mode with an encapsulated apicorresponding to an input source and determining a touch operationinstruction corresponding to the encapsulated api.

Optionally, performing a corresponding processing according to anacquired trajectory of the gesture specifically includes:

performing a corresponding processing of gesture according to anacquired trajectory of the gesture of a single-finger operation or amulti-finger operation;

wherein, the processing of gesture includes: zooming an interface,and/or scrolling an interface, and/or selecting text content, and/orfilling an area swept by a gesture, and/or cutting/copying an area sweptby a gesture.

Optionally, performing a corresponding processing according to anacquired trajectory of the stylus specifically includes:

performing a corresponding processing of stylus according to an acquiredtrajectory of the stylus;

wherein, the processing of stylus includes: an ink drawing processing,and/or a laser stylus processing, and/or a regular image/object drawingprocessing, and/or an eraser processing.

Optionally, the method for identifying a trajectory on a touch screenfurther includes:

when it is determined that the touch operation instruction includes bothof a stylus-triggered instruction and a gesture-triggered instruction,

performing a corresponding processing in priority order according to apreset priority;

or determining whether the touch operation instruction is a special casebased on the preset priority, and if it is determined to be a specialcase, readjusting the priority order;

or simultaneously performing operations corresponding to astylus-triggered instruction and a gesture-triggered instruction.

An apparatus for identifying a trajectory on a touch screen provided byan embodiment of the present application includes:

a detecting unit, configured for detecting a touch operation instructiontriggered on the touch screen;

a determination unit, configured for determining a type of the touchoperation instruction; if the touch operation instruction is astylus-triggered instruction, triggering a stylus processing unit, andif the touch operation instruction is a gesture-triggered instruction,triggering a gesture processing unit;

the stylus processing unit is configured for performing a correspondingprocessing according to an acquired trajectory of the stylus;

the gesture processing unit is configured for performing a correspondingprocessing according to an acquired trajectory of the gesture.

Optionally, the detecting unit specifically includes:

a returning subunit, configured for, in an ink state, acquiring atrigger mode returned by the touch screen;

a determination subunit, configured for automatically matching thetrigger mode with an input source and determining a corresponding touchoperation instruction.

Optionally, the determination subunit is configured for automaticallymatching the trigger mode with an encapsulated api corresponding to aninput source and determining a touch operation instruction correspondingto the encapsulated api.

Optionally, the gesture processing unit is configured for performing acorresponding processing of gesture according to an acquired trajectoryof the gesture of a single-finger operation or a multi-finger operation;

wherein, the processing of gesture includes: zooming an interface,and/or scrolling an interface, and/or selecting text content, and/orfilling an area swept by a gesture, and/or cutting/copying an area sweptby a gesture.

Optionally, the stylus processing unit is configured for performing acorresponding processing of stylus according to an acquired trajectoryof the stylus;

wherein, the processing of stylus includes: an ink drawing processing,and/or a laser stylus processing, and/or a regular image/object drawingprocessing, and/or an eraser processing.

Optionally, the apparatus for identifying a trajectory on a touch screenfurther includes:

a simultaneous processing unit, configured for, when the determinationunit determines that the touch operation instruction includes both of astylus-triggered instruction and a gesture-triggered instruction,performing a corresponding processing in priority order according to apreset priority, or determining whether the touch operation instructionis a special case based on the preset priority, and if it is determinedto be a special case, readjusting the priority order, or simultaneouslyperforming operations corresponding to a stylus-triggered instructionand a gesture-triggered instruction.

An electronic device provided by an embodiment of the presentapplication includes:

a processor, a memory, communication interfaces and a communication bus;wherein

the processor, the memory, and the communication interfaces areconnected and communicate with each other via the communication bus;

the memory stores executable program codes;

the processor executes a program corresponding to the executable programcodes by reading the executable program codes stored in the memory toimplement the method for identifying a trajectory on a touch screendescribed in the present application.

An embodiment of the present application provides a storage medium,wherein, the storage medium is configured for storing an executableprogram code, and the executable program code is configured for, whenbeing executed, implementing the method for identifying a trajectory ona touch screen described in the present application.

An embodiment of the present application provides an applicationprogram, wherein, the application program is configured for, when beingexecuted, implementing the method for identifying a trajectory on atouch screen described in the present application.

As can be seen from the above technical solutions, the embodiments ofthe present application have the following advantages:

the embodiments of the present application provide a method andapparatus for identifying a trajectory on a touch screen; wherein, themethod for identifying a trajectory on a touch screen includes:detecting a touch operation instruction triggered on the touch screen;and then determining a type of the touch operation instruction; if thetouch operation instruction is a stylus-triggered instruction,performing a corresponding processing according to an acquiredtrajectory of the stylus, and if the touch operation instruction is agesture-triggered instruction, performing a corresponding processingaccording to an acquired trajectory of the gesture. In this embodiment,the type of the touch operation instruction is determined, and if thetype of the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if the type of the touch operationinstruction is a gesture-triggered instruction, a correspondingprocessing is performed according to the acquired trajectory of gesture,many limitations in the operations by a stylus and gesture currentlyexisting in the operation state of the touch screen can be solved, suchas the technical problem of low user experience caused byindistinguishable, complex and indirect operations on the touch screendue to mix-up operations of the stylus and the gesture.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to more clearly describe the technical solutions in theembodiments of the present application and the prior art, drawings thatneed to be used in the embodiments and the prior art will be brieflydescribed below. Obviously, the drawings described below are for onlysome embodiments of the present application; those skilled in the artcan also obtain other drawings based on these drawings without anycreative efforts.

FIG. 1 is a schematic flowchart diagram of an embodiment of a method foridentifying a trajectory on a touch screen provided by embodiments ofthe present application;

FIG. 2 is a schematic flowchart diagram of another embodiment of amethod for identifying a trajectory on a touch screen provided byembodiments of the present application;

FIG. 3 is a structural schematic diagram of an embodiment of anapparatus for identifying a trajectory on a touch screen provided byembodiments of the present application;

FIG. 4 is a structural schematic diagram of another embodiment of anapparatus for identifying a trajectory on a touch screen provided byembodiments of the present application;

FIG. 5 is a schematic diagram of an application example of FIG. 2.

DETAILED DESCRIPTION

In order to enable those skilled in the art to better understand thetechnical solutions in the embodiments of the present application, thetechnical solutions in the embodiments of the present application willbe described clearly and completely below in combination with theaccompanying drawings of the embodiments of the present application.Obviously, the embodiments described are merely a part of theembodiments of the present application, not all of the embodiments. Allother embodiments obtained by those skilled in the art based on theembodiments of the present application without creative efforts shallfall within the protection scope of the application.

Referring to FIG. 1, an embodiment of a method for identifying atrajectory on a touch screen provided by embodiments of the presentapplication includes the following steps.

101, detecting a touch operation instruction triggered on the touchscreen.

In this embodiment, when it is required to determine a touch of a stylusor a gesture in an ink state, it is first necessary to detect the touchoperation instruction triggered on the touch screen.

102, determining a type of the touch operation instruction; if the touchoperation instruction is a stylus-triggered instruction, performing thestep 103, and if the touch operation instruction is a gesture-triggeredinstruction, performing the step 104.

After detecting a touch operation instruction triggered on the touchscreen, it is required to determine the type of the touch operationinstruction. If the touch operation instruction is a stylus-triggeredinstruction, the step 103 is performed, and if the touch operationinstruction is a gesture-triggered instruction, the step 104 isperformed.

103, performing a corresponding processing according to an acquiredtrajectory of the stylus.

When it is determined that the touch operation instruction is astylus-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of the stylus.

104, performing a corresponding processing according to an acquiredtrajectory of the gesture.

When it is determined that the touch operation instruction is agesture-triggered instruction, a corresponding processing is performedaccording to an acquired trajectory of the gesture.

In this embodiment, the type of the touch operation instruction isdetermined, and if the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if the touch operation instruction isa gesture-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of gesture, many limitations in theoperations by a stylus and gesture currently existing in the operationstate of the touch screen can be solved, such as the technical problemof low user experience caused by indistinguishable, complex and indirectoperations on the touch screen due to mix-up operations of the stylusand the gesture.

The process of the method for identifying a trajectory on a touch screenis described in detail above, and the additional processes will bedescribed in detail below. Referring to FIG. 2, another embodiment ofthe method for identifying a trajectory on a touch screen provided byembodiments of the present application includes the following steps.

201, acquiring a trigger mode returned by the touch screen.

In this embodiment, when it is required to determine a touch of a stylusor a gesture, the trigger mode returned by the touch screen is firstacquired.

202, automatically matching the trigger mode with an input source anddetermining a corresponding touch operation instruction.

After acquiring a trigger mode returned by the touch screen, it isrequired to automatically match the trigger mode with an input sourceand determine a corresponding touch operation instruction.

The automatically matching an input source to the trigger mode anddetermining a corresponding touch operation instruction may includeautomatically matching the trigger mode with an encapsulated apicorresponding to an input source and determining a corresponding touchoperation instruction according to the encapsulated api. For example,the ios 9 system has an attribute type that can be used to distinguishbetween a finger and a stylus. If the input source is different, the apigestures encapsulated in the system would be different. For example,when receiving a gesture, the UITouch gesture source has encapsulatedtype, which is a well-known technique in the art and will not bedescribed in detail.

203, determining the type of the touch operation instruction; if thetouch operation instruction is a stylus-triggered instruction,performing step 204, if the touch operation instruction is agesture-triggered instruction, performing step 205, and if the touchoperation instruction includes both of a stylus-triggered instructionand a gesture-triggered instruction, performing step 206.

After automatically matching the trigger mode with an input source anddetermining a corresponding touch operation instruction, it is requiredto determine the type of the touch operation instruction. If the touchoperation instruction is the stylus-triggered instruction, the step 204is performed, if the touch operation instruction is thegesture-triggered instruction, the step 205 is performed, and if thetouch operation instruction includes both of a stylus-triggeredinstruction and a gesture-triggered instruction, the step 206 isperformed.

204, performing a corresponding processing according to the acquiredtrajectory of the stylus.

When it is determined that the touch operation instruction is astylus-triggered instruction, a corresponding processing is performedaccording to an acquired trajectory of the stylus.

It should be noted that the processing of a stylus includes: an inkdrawing processing, and/or a laser stylus processing, and/or a regularimage/object drawing processing, and/or an eraser processing.

205, performing a corresponding processing according to an acquiredtrajectory of the gesture.

When it is determined that the touch operation instruction is agesture-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of the gesture.

It should be noted that, the performing a corresponding processingaccording to an acquired trajectory of the gesture may specificallyinclude performing a corresponding processing of gesture according tothe acquired trajectory of the gesture of a single-finger operation or amulti-finger operation. Wherein, the processing of gesture includes:zooming an interface, and/or scrolling an interface, and/or selectingtext content, and/or filling an area swept by a gesture, and/orcutting/copying an area swept by a gesture. Actually, the effect of theprocessing of gesture is not limited.

206, performing a corresponding processing in priority order accordingto a preset priority, or determining whether the touch operationinstruction is a special case based on the preset priority, and if it isdetermined to be the special case, readjusting the priority order, orsimultaneously performing operations corresponding to a stylus-triggeredinstruction and a gesture-triggered instruction.

When it is determined that the touch operation instruction includes bothof a stylus-triggered instruction and a gesture-triggered instruction, aprioritized order processing corresponding to a preset priority isperformed, or whether the touch operation instruction is a special caseis determined based on the preset priority, and if it is determined tobe the special case, the prioritized order is readjusted, or operationscorresponding to the stylus-triggered instruction and thegesture-triggered instruction are simultaneously performed.

The above “readjusting” may be performed in the same scene. For example,usually, in a setting of the preset priority, if the hand touches thescreen first, the screen would first respond to the hand, and if thestylus touches the screen first, the screen would first respond to thestylus. But a special determination can be added, such that if thecontact area of the hand is too large, it will not respond to the hand.

It should be noted that when the stylus and the hand touches the screenat the same time, priority decisions may be made through someidentifications. For example, if the contact area of the hand is toolarge or meets certain characteristics, it can be determined that theuser is in the state of holding the stylus, and the palm or the fingeris support the screen to draw. In this case, the contact behavior of thehand is automatically ignored. When the stylus and the hand touches thescreen at the same time, the subsequent processing is not necessarilymutually exclusive. If the two actions do not conflict, the two actionsof the hand and the stylus may be performed at the same time. The actionof the finger may also be extended to any other action. For example, thesingle-finger slip may be defined as the erase behavior. After drawingan ink with the stylus, and the ink content in the track of the fingermovement may be erased when the finger slips at the ink position.Further, the stylus's behavior is not necessarily only to drawhandwriting, for example, can be defined as drawing a regular rectangle,circle, etc., and even using the stylus as an eraser.

It should be noted that the above preset priority may be that the stylusoperation corresponding to the stylus-triggered instruction is performedfirst, and then the gesture operation corresponding to thegesture-triggered instruction is performed, or the processing isreversed, which will not be described in detail. The above trajectory ofgesture may be a multi-finger, single-finger operation, and is notspecifically limited herein.

FIG. 5 shows distinguishing between the operations of stylus and gesturein the same interface, that is, responding to the operation of stylusupon using the stylus, that the result of the operation is to draw ahandwriting effect, and, responding to the operation of gesture uponusing the finger, such as scrolling the interface, zooming theinterface, selecting text.

In this embodiment, the type of the touch operation instruction isdetermined, and if the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if the touch operation instruction isa gesture-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of gesture, many limitations in theoperations by a stylus and gesture currently existing in the operationstate of the touch screen can be solved, such as the technical problemof low user experience caused by indistinguishable, complex and indirectoperations on the touch screen due to mix-up operations of the stylusand the gesture. At the same time, by distinguishing between the stylusand the gesture operation, different operation feedbacks are given tothe stylus and the gesture, such that the user can complete theoperation task more conveniently and quickly without switching the statefrequently, and distinguish the purpose of these two actions, writingink and operating interface, by distinguishing between the stylus andthe gesture. The effect achieved is that the interface may also beoperated by gestures during the marking process by using the stylus,such as scrolling and zooming the interface, such that the user can markwhile browsing, to help the user complete the marking processconveniently and quickly.

And in practical applications, if entering the specific ink state, it ispossible to draw or write directly by using the stylus. But ordinaryfinger sweeping is also to draw ink, usually in this case, the existingsolution is to support complex gestures, for example, the page may besided by using two fingers at this time (It is difficult for users todiscover and learn this gesture). But this processing is subject to manylimitations, wherein, mainly the most direct single-finger slidingcannot directly scroll the page and single-finger can also not selectthe file element.

Further, by distinguishing between a trajectory of a stylus and atrajectory of a gesture, the drawing behavior is clearly distinguishedfrom other behaviors, and more possibilities may be provided in theactual design, such as the user drawing the ink by the stylus orscrolling the page content by single-finger.

Referring to FIG. 3, an embodiment of an apparatus for identifying atrajectory on a touch screen provided by embodiments of the presentapplication includes:

a detecting unit 301, configured for detecting a touch operationinstruction triggered on the touch screen;

a determination unit 302, configured for determining a type of the touchoperation instruction; if the touch operation instruction is astylus-triggered instruction, triggering a stylus processing unit 303,and if the touch operation instruction is a gesture-triggeredinstruction, triggering a gesture processing unit 304;

the stylus processing unit 303 is configured for performing acorresponding processing according to an acquired trajectory of thestylus;

the gesture processing unit 304 is configured for performing acorresponding processing according to an acquired trajectory of thegesture.

In this embodiment, the type of the touch operation instruction isdetermined by the determination unit 302; if the touch operationinstruction is a stylus-triggered instruction, a correspondingprocessing is performed by the stylus processing unit 303 according tothe acquired trajectory of stylus, and if the touch operationinstruction is a gesture-triggered instruction, a correspondingprocessing is performed by the gesture processing unit 304 according tothe acquired trajectory of gesture, many limitations in the operationsby a stylus and gesture currently existing in the operation state of thetouch screen can be solved, such as the technical problem of low userexperience caused by indistinguishable, complex and indirect operationson the touch screen due to mix-up operations of the stylus and thegesture.

Various units of the apparatus for identifying a trajectory on a touchscreen is described in detail above, and the additional units will bedescribed in detail below. Referring to FIG. 4, another embodiment ofthe apparatus for identifying a trajectory on a touch screen provided inembodiments of the present application includes:

a detecting unit 401, configured for detecting a touch operationinstruction on the touch screen triggered on the touch screen; wherein,the detecting unit 401 specifically includes:

a returning subunit 4011, configured for acquiring a trigger modereturned by the touch screen;

a determination subunit 4012, configured for automatically matching thetrigger mode with an input source and determining a corresponding touchoperation instruction; wherein, the determination subunit 4012 isspecifically configured for automatically matching the trigger mode withan encapsulated api corresponding to an input source and determining acorresponding touch operation instruction according to the encapsulatedapi;

a determination unit 402, configured for determining a type of the touchoperation instruction; if the touch operation instruction is astylus-triggered instruction, triggering a stylus processing unit 403,and if the touch operation instruction is a gesture-triggeredinstruction, triggering a gesture processing unit 404;

the stylus processing unit 403, configured for performing acorresponding processing according to an acquired trajectory of thestylus; wherein, the stylus processing unit is specifically configuredfor performing a corresponding processing of a stylus according to theacquired trajectory of the stylus;

wherein, the processing of a stylus includes: an ink drawing processing,and/or a laser stylus processing, and/or a regular image/object drawingprocessing, and/or an eraser processing;

the gesture processing unit 404, configured for performing acorresponding processing according to an acquired trajectory of thegesture; wherein, the gesture processing unit 404 is specificallyconfigured for performing a corresponding processing of a gestureaccording to an acquired trajectory of the gesture of a single-fingeroperation or a multi-finger operation;

wherein, the processing of gesture includes: zooming an interface,and/or scrolling an interface, and/or selecting text content, and/orfilling an area swept by a gesture, and/or cutting/copying an area sweptby a gesture;

a simultaneous processing unit 405, configured for, when thedetermination unit 402 determines that the touch operation instructionincludes both of a stylus-triggered instruction and a gesture-triggeredinstruction, performing a corresponding processing in priority orderaccording to a preset priority, or determining whether the touchoperation instruction is a special case based on the preset priority,and if it is determined to be the special case, readjusting the priorityorder, or simultaneously performing operations corresponding to thestylus-triggered instruction and the gesture-triggered instruction.

In this embodiment, the type of the touch operation instruction isdetermined by the determination unit 402; if the touch operationinstruction is a stylus-triggered instruction, a correspondingprocessing is performed by the stylus processing unit 403 according tothe acquired trajectory of stylus, and if the touch operationinstruction is a gesture-triggered instruction, a correspondingprocessing is performed by the gesture processing unit 404 according tothe acquired trajectory of gesture, many limitations in the operationsby a stylus and gesture currently existing in the operation state of thetouch screen can be solved, such as the technical problem of low userexperience caused by indistinguishable, complex and indirect operationson the touch screen due to mix-up operations of the stylus and thegesture. At the same time, by distinguishing between the stylus and thegesture operation, different operation feedbacks are given to the stylusand the gesture, such that the user can complete the operation task moreconveniently and quickly without switching the state frequently, anddistinguish the purpose of these two actions, writing ink and operatinginterface, by distinguishing between the stylus and the gesture. Theeffect achieved is that the interface may also be operated by gesturesduring the marking process by using the stylus, such as scrolling andzooming the interface, such that the user can mark while browsing, tohelp the user complete the marking process conveniently and quickly.

Correspondingly, an embodiment of the present application furtherprovides an electronic device, which may include:

a processor, a memory, communication interfaces and a communication bus;wherein,

the processor, the memory, and the communication interfaces areconnected and communicate with each other via the communication bus;

the memory stores executable program codes;

the processor executes a program corresponding to the executable programcodes by reading the executable program codes stored in the memory toimplement the method for identifying a trajectory on a touch screenprovided by the present application when being executed.

In this embodiment, the type of the touch operation instruction isdetermined, and if the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if the touch operation instruction isa gesture-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of gesture, many limitations in theoperations by a stylus and gesture currently existing in the operationstate of the touch screen can be solved, such as the technical problemof low user experience caused by indistinguishable, complex and indirectoperations on the touch screen due to mix-up operations of the stylusand the gesture.

Correspondingly, an embodiment of the present application furtherprovides a storage medium, wherein the storage medium is used forstoring executable program codes, and the executable program codes areconfigured for, when being executed, implementing the method foridentifying a trajectory on a touch screen provided by the presentapplication.

In this embodiment, the type of the touch operation instruction isdetermined, and if the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if the touch operation instruction isa gesture-triggered instruction, a corresponding processing is performedaccording to the acquired trajectory of gesture, many limitations in theoperations by a stylus and gesture currently existing in the operationstate of the touch screen can be solved, such as the technical problemof low user experience caused by indistinguishable, complex and indirectoperations on the touch screen due to mix-up operations of the stylusand the gesture.

Correspondingly, an embodiment of the present application furtherprovides an application program, wherein, the application program isconfigured for, when being executed, implementing the method foridentifying a trajectory on a touch screen provided by the presentapplication.

In this embodiment, by determining the type of the touch operationinstruction, if the touch operation instruction is a stylus-triggeredinstruction, a corresponding processing is performed according to theacquired trajectory of stylus, and if of the touch operation instructionis a gesture-triggered instruction, a corresponding processing isperformed according to the acquired trajectory of gesture, so as tosolve many limitations that the stylus and the gesture operationcurrently subjected to in the operation state of the touch screen. Forexample, due to the chaotic operation caused by the stylus and thegesture operation, it is difficult to distinguish the actual operationattributes such that the operation is too cumbersome and notstraightforward, resulting in the technical problem of low userexperience.

The embodiments of an apparatus/an electronic device/a storage medium/anapplication program are described briefly since they are substantiallysimilar to the embodiment of the method. The related contents can referto the description of the embodiments of the method.

It should be noted that the relationship terms used herein, such as“first”, “second” and the like are only used to distinguish one entityor operation from another entity or operation, but do not necessarilyrequire or imply that there is an actual relationship or order betweenthese entities or operations. Moreover, the terms “include”, “comprise”,or any variants thereof are intended to cover a non-exclusive inclusion,such that processes, methods, articles, or devices, including a seriesof elements, include not only those elements that have been listed, butalso other elements that is not specifically listed or the elementsintrinsic to these processes, methods, articles, or devices. Withoutfurther limitations, elements defined by the wording “comprise(s) a/an .. . ” do not exclude additional identical elements in the processes,methods, articles, or devices that includes the listed elements.

All of the embodiments in the description are described in a correlatedmanner, and identical or similar parts in various embodiments can referto one another. In addition, the description for each embodiment focuseson the differences from other embodiments. In particular, the embodimentof the apparatus is described briefly, since it is substantially similarto the embodiment of the method, and the related contents can refer tothe description of the embodiment of the method.

It can be understood by those with ordinary skills in the art that allor a part of steps in the implementations of the above method can beaccomplished by instructing related hardware through programs, which canbe stored in a computer-readable storage medium, such as in ROM/RAM, adisk, an optical disk, and so on.

The embodiments described above are simply preferred embodiments of thepresent application, and are not intended to limit the scope ofprotection of the present application. Any modifications, alternatives,improvements, or the like within the spirit and principle of the presentapplication shall be included in the scope of protection of the presentapplication.

The invention claimed is:
 1. A method for identifying a trajectory on atouch screen, comprising: detecting a touch operation instructiontriggered on the touch screen; determining a type of the touch operationinstruction; if the touch operation instruction is a stylus-triggeredinstruction, performing a corresponding processing according to anacquired trajectory of the stylus, and if the touch operationinstruction is a gesture-triggered instruction, performing acorresponding processing according to an acquired trajectory of thegesture; when it is determined that the touch operation instructionincludes both of a stylus-triggered instruction and a gesture-triggeredinstruction, and if it is determined that a processing corresponding tothe stylus-triggered instruction and a processing corresponding to thegesture-triggered instruction are mutually exclusive with each otherperforming a corresponding processing in priority order according to apreset priority or determining whether the touch operation instructionis a special case based on a preset priority, and if it is determined tobe a special case, readjusting the priority order; wherein the presetpriority is set for performing the stylus operation corresponding to thestylus-triggered instruction first, and then performing the gestureoperation corresponding to the gesture-triggered instruction.
 2. Themethod for identifying a trajectory on a touch screen of claim 1,wherein, detecting a touch operation instruction triggered on the touchscreen comprises: in an ink state, acquiring a trigger mode returned bythe touch screen; automatically matching the trigger mode with an inputsource and determining a corresponding touch operation instruction. 3.The method for identifying a trajectory on a touch screen of claim 2,wherein, automatically matching the trigger mode with an input sourceand determining a corresponding touch operation instruction comprises:automatically matching the trigger mode with an encapsulated apicorresponding to an input source and determining a touch operationinstruction corresponding to the encapsulated api.
 4. The method foridentifying a trajectory on a touch screen of claim 1, wherein,performing a corresponding processing according to an acquiredtrajectory of the gesture comprises: performing a correspondingprocessing of gesture according to an acquired trajectory of the gestureof a single-finger operation or a multi-finger operation; wherein, theprocessing of gesture includes: zooming an interface, and/or scrollingan interface, and/or selecting text content, and/or filling an areaswept by a gesture, and/or cutting/copying an area swept by a gesture;wherein, performing a corresponding processing according to an acquiredtrajectory of the stylus comprises; performing a correspondingprocessing of stylus according to an acquired trajectory of the stylus;wherein, the processing of stylus includes: an ink drawing processing,and/or a laser stylus processing, and/or a regular image/object drawingprocessing, and/or an eraser processing.
 5. An electronic device,comprising: a processor, a memory, communication interfaces and acommunication bus; wherein the processor, the memory, and thecommunication interfaces are connected and communicate with each othervia the communication bus; the memory stores executable program codes;the processor executes a program corresponding to the executable programcodes by reading the executable program codes stored in the memory toimplement the method for identifying a trajectory on a touch screen ofclaim
 1. 6. A non-temporary computer-readable storage medium, configuredfor storing executable program codes; wherein, the executable programcodes are configured for, when being executed, implementing the methodfor identifying a trajectory on a touch screen of claim 1.